package com.qingfeng.client.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qingfeng.client.DO.ShoppingCartStoreDo;import com.qingfeng.client.bean.ShoppingCart;import org.apache.ibatis.annotations.Param;import java.util.List;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> {
    //新增购物车
    boolean saveCookieCarts(@Param("carts") List<ShoppingCart> cookieCarts, @Param("buyerId") Long buyerId);

    List<ShoppingCartStoreDo> getShopCatGoodsDoByBuyer(@Param("buyerId") Long buyerId);

    List<ShoppingCart> selectByBuyerIdAndGoodsId(@Param("buyerId")Long buyerId,@Param("goodsId")Long goodsId);

   boolean deleteByBuyerIdAndGoodsIds(@Param("buyerId")Long buyerId,@Param("goodsIds")String goodsIds);
}
